

package cn.sdstudio.constants;

/**
 * @author Zyq
 * @version 1.0
 * @date 2025/4/21 周一
 */
public class SystemConstants {
    // 登录成功
    public static final int SUCCESS_CODE = 200;
    public static final String SUCCESS_MSG = "登录成功";

    // 用户不存在
    public static final int USER_NOT_FOUND_CODE = 405;
    public static final String USER_NOT_FOUND_MSG = "账号不存在";

    // 密码错误
    public static final int PASSWORD_ERROR_CODE = 401;
    public static final String PASSWORD_ERROR_MSG = "密码错误";

    // 账号被禁用
    public static final int ACCOUNT_DISABLED_CODE = 403;
    public static final String ACCOUNT_DISABLED_MSG = "账号已被禁用";

    // 登录频繁
    public static final int TOO_MANY_ATTEMPTS_CODE = 429;
    public static final String TOO_MANY_ATTEMPTS_MSG = "登录过于频繁，请稍后再试";

    // 参数错误
    public static final int PARAM_ERROR_CODE = 400;
    public static final String PARAM_ERROR_MSG = "请求参数错误";

    // 参数为空
    public static final int PARAM_EMPTY_CODE = 400;
    public static final String PARAM_EMPTY_MSG = "参数不能为空";
    public static final String THE_EMAIL_ADDRESS_PARAMETER_IS_INVALID = "邮箱参数不合法";

    //邮箱发送主体参数
    public static final String EMAIL_SUBJECT = "登录验证码";

    public static final String THE_CAPTCHA_PARAMETERS_ARE_INCORRECT = "验证码参数不正确";

    public static final String PASSWORD_LENGTH_ERRO = "密码应该为8位";


    // 服务异常
    public static final int SERVER_ERROR_CODE = 500;
    public static final String SERVER_ERROR_MSG = "服务异常，请联系管理员";
    public static final String DEFAULT_USERNAME_SUFFIX = "_viata";
    public static final Integer EMPTY_ELEMENTS_CODE = 215;
    public static final String EMPTY_ELEMENTS = "上传的文件是空";
    public static final String UPLOAD = "图片上传操作,用户未登录";



    private SystemConstants() {
    } // 防止被实例化
}
